<template>
    <div>
      <Header></Header>
      <router-view v-if="isNew"></router-view>
    </div>
</template>
<script>
import Header from './components/Header/index.vue';
import { scaleListener } from './Layout/resize.js';
export default {
  name:'App',
  provide(){
    return {
      reload:this.reload
    }
  },
  components:{
    Header
},
  data(){
    return {
      isNew:true
    }
  },
  methods:{
    reload(){
      this.isNew=false;
      this.$nextTick(function(){
        this.isNew=true
      })
    }
  },
  mounted() {
    scaleListener()
  },

}
</script>

<style scoped>
html,

body {

height: 100%;

margin: 0;

padding: 0;

}
/*::v-deep *{*/
/*  border: 1px red dashed;*/

/*}*/
</style>
